package birthday;

public class Time {
	private int hour;
	private int minute;
	private int second;
	
	public Time() {
		super();
	}
	public Time(int hour, int minute, int second) {
		super();
		this.hour = hour;
		this.minute = minute;
		this.second = second;
	}
	public int getHour() {
		return hour;
	}
	public void setHour(int hour) {
		this.hour = hour;
	}
	public int getMinute() {
		return minute;
	}
	public void setMinute(int minute) {
		this.minute = minute;
	}
	public int getSecond() {
		return second;
	}
	public void setSecond(int second) {
		this.second = second;
	}
	public void showTime() {
		System.out.println(hour + "时" + minute + "分" + second + "秒");
	}
}
